package com.itheima;

import com.itheima.config.SpringConfig;
import com.itheima.controller.UserController;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author 陆小根
 * date: 2022/05/04
 * Description:
 */

public class App {

  public static void main(String[] args) {
    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
    System.out.println(ctx.getBean(UserController.class));
  }

}
